<?php 
$this->extend('/Common/default');
$this->start('mid');
?>
<div class="mid">
    <div class="searchBox">
        <input class="choosePeople" type="radio" name="SearchType"/> People
        <input class="chooseJobs" type="radio" name="SearchType"/> Jobs
        <input class="searchInput" type="text" /> 
        <input class="buttonMidBlue" type="submit" value="Search" />
    </div>
    
    <div class="jobViewBox">
        <div class="jobViewTitle">View a Job</div>
        <li>
            <div class="jobViewType">Job Title:</div>
            <div class="jobViewContent"><?php echo $job['Job']['title'];?></div>                      
            <div style="clear:both" ></div>
        </li>
        <li>
            <div class="jobViewType">Company Name:</div>
            <div class="jobViewContent"><?php echo $job['Job']['company_name'];?></div>                      
            <div style="clear:both" ></div>
        </li>       
        <li>
            <div class="jobViewType">Location:</div>
            <div class="jobViewContent"><?php echo $job['Job']['city'].', '.$job['Job']['state'].', '.$job['Job']['country'].', '.$job['Job']['zipcode'];?></div>                      
            <div style="clear:both" ></div>
        </li> 
        <li>
            <div class="jobViewType">Type:</div>
            <div class="jobViewContent">
            	<?php
            		foreach ($job['JobType'] as $jobtype){
            			echo "<span class=\"jobViewJobTypeBox\">".$jobtype['Type']['name']."</span>";
            		}
            	?>
            </div>              
            <div style="clear:both" ></div>
        </li>                     
        <li>
            <div class="jobViewType">Description: </div>
            <div class="jobViewDescription">                    
            <?php echo $job['Job']['description'];?>
            </div>
            <div style="clear:both" ></div>   
        </li>  
        <li>
            <div class="jobViewType">Email To:</div>
            <div class="jobViewContent"><?php echo $job['Job']['email_to'];?></div>  
            <div style="clear:both" ></div>
        </li> 
        <li>
            <div class="jobViewType">Contact Person:</div>
            <div class="jobViewContent"><?php echo $job['Job']['contact_person'];?></div>    
            <div style="clear:both" ></div>
        </li>                     
        
        <input class="buttonDarkGreen" type="submit" value="Submit This Job"/>
    </div>
</div>
<?php $this->end(); ?>